package com.gandong8.derby.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 菜单
 * @author xiaoyutou
 */
@Controller
public class MenuController extends BaseController{
    @RequestMapping(value = "/api/init.json")
    @ResponseBody
    public String menu() {
        String aa = "{\"homeInfo\":{\"title\":\"首页\",\"href\":\"/main.html\"},\"logoInfo\":{\"title\":\"后台管理\",\"image\":\"images/logo.png\",\"href\":\"\"},\"menuInfo\":[{\"title\":\"常规管理\",\"icon\":\"fa fa-address-book\",\"href\":\"\",\"target\":\"_self\",\"child\":[{\"title\":\"网站管理\",\"href\":\"\",\"icon\":\"fa fa-home\",\"target\":\"_self\",\"child\":[{\"title\":\"网站列表\",\"href\":\"/site/page/list\",\"icon\":\"fa fa-tachometer\",\"target\":\"_self\"},{\"title\":\"添加网站\",\"href\":\"/site/page/add\",\"icon\":\"fa fa-tachometer\",\"target\":\"_self\"}]},{\"title\":\"秘钥管理\",\"href\":\"/pwd/index\",\"icon\":\"fa fa-home\",\"target\":\"_self\",\"child\":[]},{\"title\":\"系统管理\",\"href\":\"\",\"icon\":\"fa fa-home\",\"target\":\"_self\",\"child\":[{\"title\":\"日志列表\",\"href\":\"/log/index\",\"icon\":\"fa fa-hourglass-end\",\"target\":\"_self\"}]}]}]}";
        return aa;
    }
}
